<div id="left">
	Categories
	<div class="new-item"><a href="<?php echo site_url('admin/newCategory'); ?>">Add Category</a></div>
	<ul>		
		<?php 
			foreach($categories as $category)
			{
				echo '<li>'.$category['category'].'</li>';
			}
		?>
	</ul>
</div>
<div id="new_content">
	<h2>Add New Category</h2>
	<form action="<?php echo site_url('admin/newCategory'); ?>" method="post" >
	<table>
		<tr>
			<td>Category: </td>
			<td><input type="text" name="category" value=""/></td>
		</tr>
		<tr>
			<td>Sub Category: </td>
			<td>
				<select name="sub_category">
					<option value="0">--all--</option>
				<?php					
					foreach ($categories as $category) 
					{
						echo '<option value="'.$category['id'].'">'.$category['category'].'</option>';
					}
				?>
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<input type="submit" name="submitBtn" value="Submit">
				<input type="reset" name="resetBtn" value="Reset">
			</td>
		</tr>
	</table>
	</form>
</div>